import  request  from '@/utils/request.js';

// 厂区数据
export const getDeviceData = () =>{
     return request({
        method:'post',
        url:'/getDeviceData'
     })
}

/**
 * 生产进度
 * @returns 
 */
export const getProduceWorkSchedule = (query) =>{
     return request({
        method:'post',
        url:'/getProduceWorkSchedule',
        data:query
     })
}

/**
 * 生产计划明细列表
 * @param {*} query 
 * @returns 
 */
export const getProduceDetailList = (query) =>{
    return request({
      method:'post',
      url:'/getProduceDetailList',
      data:query
    })
}

/**
 * 获取各种成品类型数量统计（右下角圆饼图）
 * @returns 
 */
export const getPendingProduce = () =>{
   return request({
       method:'post',
       url:'/getPendingProduce'
   })
}

/**
 * 最近七天入库数量
 * @returns 
 */
export const getStockData = () =>{
   return request({
      method:'post',
      url:'/getStockData'
   })
}